
<!DOCTYPE html>
<html>
<head>
    <meta charset="utf-8"/>
    <title>IconFont</title>
    <link rel="stylesheet" href="demo.css">
    <link rel="stylesheet" href="iconfont.css">
</head>
<body>
    <div class="main markdown">
        <h1>IconFont 图标</h1>
        <ul class="icon_lists clear">

                <li>
                <i class="icon icon-font icon-quanxiang"></i>
                    <div class="name">权限管理</div>
                    <div class="fontclass">.icon-quanxiang</div>
                </li>

                <li>
                <i class="icon icon-font icon-category"></i>
                    <div class="name">分类</div>
                    <div class="fontclass">.icon-category</div>
                </li>

                <li>
                <i class="icon icon-font icon-location"></i>
                    <div class="name">标注</div>
                    <div class="fontclass">.icon-location</div>
                </li>

                <li>
                <i class="icon icon-font icon-user"></i>
                    <div class="name">用户</div>
                    <div class="fontclass">.icon-user</div>
                </li>

                <li>
                <i class="icon icon-font icon-shangjia"></i>
                    <div class="name">商家</div>
                    <div class="fontclass">.icon-shangjia</div>
                </li>

                <li>
                <i class="icon icon-font icon-jishiben"></i>
                    <div class="name">记事板</div>
                    <div class="fontclass">.icon-jishiben</div>
                </li>

                <li>
                <i class="icon icon-font icon-fire"></i>
                    <div class="name">活动</div>
                    <div class="fontclass">.icon-fire</div>
                </li>

                <li>
                <i class="icon icon-font icon-label"></i>
                    <div class="name">标签</div>
                    <div class="fontclass">.icon-label</div>
                </li>

                <li>
                <i class="icon icon-font icon-baoming"></i>
                    <div class="name">报名</div>
                    <div class="fontclass">.icon-baoming</div>
                </li>

                <li>
                <i class="icon icon-font icon-jiaoseguanli"></i>
                    <div class="name">角色管理</div>
                    <div class="fontclass">.icon-jiaoseguanli</div>
                </li>

                <li>
                <i class="icon icon-font icon-sing"></i>
                    <div class="name">唱歌</div>
                    <div class="fontclass">.icon-sing</div>
                </li>

                <li>
                <i class="icon icon-font icon-bathed"></i>
                    <div class="name">浴缸</div>
                    <div class="fontclass">.icon-bathed</div>
                </li>

                <li>
                <i class="icon icon-font icon-charging"></i>
                    <div class="name">充电</div>
                    <div class="fontclass">.icon-charging</div>
                </li>

                <li>
                <i class="icon icon-font icon-wifi"></i>
                    <div class="name">wifi</div>
                    <div class="fontclass">.icon-wifi</div>
                </li>

                <li>
                <i class="icon icon-font icon-knife-fork"></i>
                    <div class="name">刀叉</div>
                    <div class="fontclass">.icon-knife-fork</div>
                </li>

                <li>
                <i class="icon icon-font icon-wan"></i>
                    <div class="name">wan</div>
                    <div class="fontclass">.icon-wan</div>
                </li>

                <li>
                <i class="icon icon-font icon-tv"></i>
                    <div class="name">tv</div>
                    <div class="fontclass">.icon-tv</div>
                </li>

                <li>
                <i class="icon icon-font icon-card"></i>
                    <div class="name">卡片</div>
                    <div class="fontclass">.icon-card</div>
                </li>

                <li>
                <i class="icon icon-font icon-weixinzhifu"></i>
                    <div class="name">微信支付</div>
                    <div class="fontclass">.icon-weixinzhifu</div>
                </li>

                <li>
                <i class="icon icon-font icon-package"></i>
                    <div class="name">包</div>
                    <div class="fontclass">.icon-package</div>
                </li>

                <li>
                <i class="icon icon-font icon-air-conditioner"></i>
                    <div class="name">空调</div>
                    <div class="fontclass">.icon-air-conditioner</div>
                </li>

                <li>
                <i class="icon icon-font icon-blower"></i>
                    <div class="name">吹风机</div>
                    <div class="fontclass">.icon-blower</div>
                </li>

                <li>
                <i class="icon icon-font icon-yuyue"></i>
                    <div class="name">预约</div>
                    <div class="fontclass">.icon-yuyue</div>
                </li>

                <li>
                <i class="icon icon-font icon-bath"></i>
                    <div class="name">淋浴</div>
                    <div class="fontclass">.icon-bath</div>
                </li>

                <li>
                <i class="icon icon-font icon-sihua"></i>
                    <div class="name">四花</div>
                    <div class="fontclass">.icon-sihua</div>
                </li>

                <li>
                <i class="icon icon-font icon-jiesongji"></i>
                    <div class="name">接送机</div>
                    <div class="fontclass">.icon-jiesongji</div>
                </li>

                <li>
                <i class="icon icon-font icon-charging1"></i>
                    <div class="name">充电1</div>
                    <div class="fontclass">.icon-charging1</div>
                </li>

                <li>
                <i class="icon icon-font icon-breakfast"></i>
                    <div class="name">早餐</div>
                    <div class="fontclass">.icon-breakfast</div>
                </li>

                <li>
                <i class="icon icon-font icon-zhifubao"></i>
                    <div class="name">支付宝</div>
                    <div class="fontclass">.icon-zhifubao</div>
                </li>

                <li>
                <i class="icon icon-font icon-meeting"></i>
                    <div class="name">会议</div>
                    <div class="fontclass">.icon-meeting</div>
                </li>

                <li>
                <i class="icon icon-font icon-parking"></i>
                    <div class="name">停车</div>
                    <div class="fontclass">.icon-parking</div>
                </li>

                <li>
                <i class="icon icon-font icon-waimai"></i>
                    <div class="name">外卖</div>
                    <div class="fontclass">.icon-waimai</div>
                </li>

                <li>
                <i class="icon icon-font icon-left-arrow"></i>
                    <div class="name">向左</div>
                    <div class="fontclass">.icon-left-arrow</div>
                </li>

                <li>
                <i class="icon icon-font icon-right-arrow"></i>
                    <div class="name">向右</div>
                    <div class="fontclass">.icon-right-arrow</div>
                </li>

                <li>
                <i class="icon icon-font icon-clock"></i>
                    <div class="name">闹钟</div>
                    <div class="fontclass">.icon-clock</div>
                </li>

                <li>
                <i class="icon icon-font icon-home"></i>
                    <div class="name">首页</div>
                    <div class="fontclass">.icon-home</div>
                </li>

                <li>
                <i class="icon icon-font icon-certificate"></i>
                    <div class="name">资料</div>
                    <div class="fontclass">.icon-certificate</div>
                </li>

                <li>
                <i class="icon icon-font icon-collection"></i>
                    <div class="name">收藏</div>
                    <div class="fontclass">.icon-collection</div>
                </li>

                <li>
                <i class="icon icon-font icon-weixin"></i>
                    <div class="name">微信</div>
                    <div class="fontclass">.icon-weixin</div>
                </li>

                <li>
                <i class="icon icon-font icon-file"></i>
                    <div class="name">文件</div>
                    <div class="fontclass">.icon-file</div>
                </li>

                <li>
                <i class="icon icon-font icon-liebiao"></i>
                    <div class="name">列表</div>
                    <div class="fontclass">.icon-liebiao</div>
                </li>

                <li>
                <i class="icon icon-font icon-jiedian"></i>
                    <div class="name">节点</div>
                    <div class="fontclass">.icon-jiedian</div>
                </li>

                <li>
                <i class="icon icon-font icon-gift"></i>
                    <div class="name">礼物</div>
                    <div class="fontclass">.icon-gift</div>
                </li>

                <li>
                <i class="icon icon-font icon-card1"></i>
                    <div class="name">卡片1</div>
                    <div class="fontclass">.icon-card1</div>
                </li>

                <li>
                <i class="icon icon-font icon-card2"></i>
                    <div class="name">卡片2</div>
                    <div class="fontclass">.icon-card2</div>
                </li>

                <li>
                <i class="icon icon-font icon-hear"></i>
                    <div class="name">心</div>
                    <div class="fontclass">.icon-hear</div>
                </li>

                <li>
                <i class="icon icon-font icon-heart-b"></i>
                    <div class="name">心</div>
                    <div class="fontclass">.icon-heart-b</div>
                </li>

                <li>
                <i class="icon icon-font icon-upload"></i>
                    <div class="name">上传</div>
                    <div class="fontclass">.icon-upload</div>
                </li>

                <li>
                <i class="icon icon-font icon-download"></i>
                    <div class="name">下载</div>
                    <div class="fontclass">.icon-download</div>
                </li>

                <li>
                <i class="icon icon-font icon-share"></i>
                    <div class="name">分享</div>
                    <div class="fontclass">.icon-share</div>
                </li>

                <li>
                <i class="icon icon-font icon-share-b"></i>
                    <div class="name">分享</div>
                    <div class="fontclass">.icon-share-b</div>
                </li>

                <li>
                <i class="icon icon-font icon-statistics1"></i>
                    <div class="name">统计</div>
                    <div class="fontclass">.icon-statistics1</div>
                </li>

                <li>
                <i class="icon icon-font icon-statistics"></i>
                    <div class="name">统计</div>
                    <div class="fontclass">.icon-statistics</div>
                </li>

                <li>
                <i class="icon icon-font `"></i>
                    <div class="name">订单</div>
                    <div class="fontclass">.icon-order</div>
                </li>

                <li>
                <i class="icon icon-font icon-moments"></i>
                    <div class="name">朋友圈</div>
                    <div class="fontclass">.icon-moments</div>
                </li>

                <li>
                <i class="icon icon-font icon-link"></i>
                    <div class="name">链接</div>
                    <div class="fontclass">.icon-link</div>
                </li>

                <li>
                <i class="icon icon-font icon-activity"></i>
                    <div class="name">活动</div>
                    <div class="fontclass">.icon-activity</div>
                </li>

                <li>
                <i class="icon icon-font icon-navigation"></i>
                    <div class="name">导航</div>
                    <div class="fontclass">.icon-navigation</div>
                </li>

                <li>
                <i class="icon icon-font icon-more"></i>
                    <div class="name">更多</div>
                    <div class="fontclass">.icon-more</div>
                </li>

                <li>
                <i class="icon icon-font icon-setting"></i>
                    <div class="name">设置</div>
                    <div class="fontclass">.icon-setting</div>
                </li>

                <li>
                <i class="icon icon-font icon-role"></i>
                    <div class="name">角色管理</div>
                    <div class="fontclass">.icon-role</div>
                </li>

        </ul>

        <h2 id="font-class-">font-class引用</h2>
        <hr>

        <p>font-class是unicode使用方式的一种变种，主要是解决unicode书写不直观，语意不明确的问题。</p>
        <p>与unicode使用方式相比，具有如下特点：</p>
        <ul>
        <li>兼容性良好，支持ie8+，及所有现代浏览器。</li>
        <li>相比于unicode语意明确，书写更直观。可以很容易分辨这个icon是什么。</li>
        <li>因为使用class来定义图标，所以当要替换图标时，只需要修改class里面的unicode引用。</li>
        <li>不过因为本质上还是使用的字体，所以多色图标还是不支持的。</li>
        </ul>
        <p>使用步骤如下：</p>
        <h3 id="-fontclass-">第一步：引入项目下面生成的fontclass代码：</h3>


        <pre><code class="lang-js hljs javascript"><span class="hljs-comment">&lt;link rel="stylesheet" type="text/css" href="./iconfont.css"&gt;</span></code></pre>
        <h3 id="-">第二步：挑选相应图标并获取类名，应用于页面：</h3>
        <pre><code class="lang-css hljs">&lt;<span class="hljs-selector-tag">i</span> <span class="hljs-selector-tag">class</span>="<span class="hljs-selector-tag">icon-font</span> <span class="hljs-selector-tag">icon-xxx</span>"&gt;&lt;/<span class="hljs-selector-tag">i</span>&gt;</code></pre>
        <blockquote>
        <p>"icon-font"是你项目下的font-family。可以通过编辑项目查看，默认是"iconfont"。</p>
        </blockquote>
    </div>
</body>
</html>
